class Solution:
    def minimumOperations(self, nums: List[int]) -> int:
        ans = 0
        for x in nums:
            rem = x % 3
            if rem != 0:
                ans += 1
        return ans